package Byte_Stream;

import java.io.File;
import java.io.IOException;

/*
 *  java.io.FileInputStream: 文件字节输入流 负责读 建议读取二进制文件
 * */
public class IO_Demo01 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt");
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());

        boolean newFile = file.createNewFile();
        System.out.println(newFile);

        boolean delete = file.delete();// 删除文件
        System.out.println(delete);


    }
}
